package com.westa.smallshop.data.source;

import com.alibaba.fastjson.JSONObject;
import com.westa.smallshop.data.GoodsItem;
import com.westa.smallshop.data.source.remote.BaseDataSource;

/**
 * Created by cy on 11/4/16.
 */

public interface GoodsItemDataSource extends BaseDataSource {

    void getGoods(@LoadType final int loadType, String currentPage, final LoadListCallBack<GoodsItem> loadListCallBack);

    void uploadGoods(GoodsItem goodsItem, String image, LoadCallBack<JSONObject> loadCallBack);

    void getGoodsItem(int goodsId, final LoadCallBack<GoodsItem> loadCallBack);

    void getGoodsInCart(final LoadListCallBack<GoodsItem> loadListCallBack);

    void addGoodsToCart(int goodsId, final LoadCallBack<JSONObject> loadCallBack);

    void orderSubmit(final LoadCallBack<JSONObject> loadCallBack);

    void searchGoods(String keyWord, final LoadListCallBack<GoodsItem> loadListCallBack);

    void deleteFromCart(int goodsId, final LoadCallBack<JSONObject> loadCallBack);

    void verifyPassword(String password, final LoadCallBack<JSONObject> loadCallBack);

    void cancelVerifyPassword();
}
